/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jskat.basic;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Kai
 */
public class Player {
    
    private String name;
    private int points;
    private String role;
    private List<Card[]> tricks;
    private Version version;
    private int reizwert;
    private Card[] playerHand;
    private int maxReizwert;
    private Skat skat;
    
    public Player(String aName)
    {
        name = aName;
        tricks = new ArrayList();
        playerHand = new Card[12];
    }
    
    public void placeCard()
    {
        
    }
    
    public void takeSkat(Card [] aSkat)
    {
        
    }
    
    public void SortCards()
    {
        
    }
    
    public void swapWithSkat()
    {
        
    }
    
    public void plunkDown()//hinschmeißen
    {
        
    }
    
    public void calculateMaxReizwert()
    {
        
    }

    public String getName() {
        return name;
    }

    public void setName(String aName) {
        name = aName;
    }

    public int getPoints() {
        return points;
    }

    public void setPoints(int aPoints) {
        points = aPoints;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String aRole) {
        role = aRole;
    }

    public List<Card[]> getTricks() {
        return tricks;
    }

    public void setTricks(List<Card[]> aTricks) {
        tricks = aTricks;
    }

    public Version getVersion() {
        return version;
    }

    public void setVersion(Version aVersion) {
        version = aVersion;
    }

    public int getReizwert() {
        return reizwert;
    }

    public void setReizwert(int aReizwert) {
        reizwert = aReizwert;
    }

    public Card[] getPlayerHand() {
        return playerHand;
    }

    public void setPlayerHand(Card[] PplayerHand) {
        playerHand = PplayerHand;
    }

    public Card getSingleCardPlayerHand(int anIndex)
    {
        if(anIndex < playerHand.length && anIndex >= 0 )
        {
            return playerHand[anIndex];
        }else
        {
            return null;
        }
    }
    
    public void setSingleCardPlayerHand(int anIndex, Card aCard)
    {
        if(anIndex < playerHand.length && anIndex >= 0 )
        {
            playerHand[anIndex] = aCard;
        }
    }
    
    public int getMaxReizwert() {
        return maxReizwert;
    }
    
    public void setMaxReizwert(int aMaxReizwert) {
        maxReizwert = aMaxReizwert;
    }

    public Skat getSkat() {
        return skat;
    }

    public void setSkat(Skat aSkat) {
        skat = aSkat;
    }
}
